import Vue from 'vue'
import VueRouter from 'vue-router'
import login from "../components/login/login.vue"
import bikeBigData from "../components/bikeBigData/bikeBigData.vue"
import main from "../components/main.vue"
import home from "../components/firstPage/home.vue"
import informationRecord from "../components/enterpriseOperation/informationRecord/informationRecord.vue"
import companyDetails from "../components/enterpriseOperation/informationRecord/companyDetails.vue"
import operation from "../components/enterpriseOperation/operation.vue"
import safetyEmergency from "../components/enterpriseOperation/safetyEmergency/safetyEmergency.vue"
import emergencyNotice from "../components/enterpriseOperation/emergencyNotice/emergencyNotice.vue"
import dispatchGrid from "../components/enterpriseOperation/dispatchGrid/dispatchGrid.vue"
import bikeInfo from "../components/enterpriseOperation/replaceGrid/bikeInfo.vue"
import selectEducationGrid from "../components/enterpriseOperation/selectEducationGrid/selectEducationGrid.vue"
import replaceGrid from "../components/enterpriseOperation/replaceGrid/replaceGrid.vue"
import putVehicleGrid from "../components/enterpriseOperation/putVehicleGrid/putVehicleGrid.vue"
import companyExit from "../components/enterpriseOperation/companyExit/companyExit.vue"
import intelligentPatrol from "../components/rulesPulling/intelligentPatrol/intelligentPatrol.vue"
import examinationResults from "../components/serviceExamine/examinationResults/examinationResults.vue"
import examinOpinions from "../components/serviceExamine/examinationResults/examinOpinions.vue"
import entering from "../components/serviceExamine/entering/entering.vue"
import examine from "../components/serviceExamine/entering/examine.vue"
import taskManagement from "../components/serviceExamine/taskManagement/taskManagement.vue"
import templateSet from "../components/serviceExamine/templateSet/templateSet.vue"
import templateDetail from "../components/serviceExamine/templateSet/templateDetail.vue"
import addTemplate from "../components/serviceExamine/templateSet/addTemplate.vue"
import targetManage from "../components/serviceExamine/targetManage/targetManage.vue"
import dataDownload from "../components/serviceExamine/dataDownload/dataDownload.vue"
import hotspotAnalysis from "../components/statisticAnalysis/hotspotAnalysis/hotspotAnalysis.vue"
import zombieVehicles from "../components/statisticAnalysis/zombieVehicles/zombieVehicles.vue"
import activeVehicle from "../components/statisticAnalysis/activeVehicle/activeVehicle.vue"
import transitRail from "../components/statisticAnalysis/transitRail/transitRail.vue"
import cyclingCharacteristics from "../components/statisticAnalysis/cyclingCharacteristics/cyclingCharacteristics.vue"
import trackDetail from "../components/statisticAnalysis/trackDetail/trackDetail.vue"
import vehicleAnalysisOD from "../components/statisticAnalysis/vehicleAnalysisOD/vehicleAnalysisOD.vue"
import parkPicture from "../components/parkResources/parkPicture/parkPicture.vue"
import parkingArea from "../components/parkResources/parkingArea/parkingArea.vue"
import parkAdd from "../components/parkResources/parkingArea/parkAdd.vue"
import parkSet from "../components/parkResources/parkingArea/parkSet.vue"
import puttingHistory from "../components/deliveryIndicators/puttingHistory/puttingHistory.vue"
import labelAllotGrid from "../components/deliveryIndicators/labelAllotGrid/labelAllotGrid.vue"
import permitPutRecordGrid from "../components/deliveryIndicators/permitPutRecordGrid/permitPutRecordGrid.vue"
import regionPutList from "../components/deliveryIndicators/regionPutList/regionPutList.vue"
import facilityPicture from "../components/baseFacility/facilityPicture/facilityPicture.vue"
import siteAndRail from "../components/baseFacility/siteAndRail/siteAndRail.vue"
import smartPile from "../components/baseFacility/siteAndRail/smartPile.vue"
import electronicTag from "../components/baseFacility/siteAndRail/electronicTag.vue"
import systemUser from "../components/systemManage/systemUser/systemUser.vue"
import roleManage from "../components/systemManage/roleManage/roleManage.vue"
import operationLogs from "../components/systemManage/operationLogs/operationLogs.vue"
import mobileUser from "../components/systemManage/mobileUser/mobileUser.vue"
import monitoringArea from "../components/parkResources/monitoringArea/monitoringArea.vue"
import monitoringAdd from "../components/parkResources/monitoringArea/monitoringAdd.vue"
import monitoringSet from "../components/parkResources/monitoringArea/monitoringSet.vue"
import illegalArea from "../components/parkResources/illegalArea/index.vue"
import illegalAreaAdd from "../components/parkResources/illegalArea/add.vue"
import illegalAreaSet from "../components/parkResources/illegalArea/set.vue"
import parkMap from "../components/rulesPulling/parkMap/parkMap.vue"
import alarmInfo from "../components/rulesPulling/alarmInfo/alarmInfo.vue"
import smartCase from "../components/rulesPulling/smartCase/smartCase.vue"
import reportManage from "../components/rulesPulling/reportManage/reportManage.vue"
import reportDetail from "../components/rulesPulling/reportManage/reportDetail.vue"
import smartCaseDetail from "../components/rulesPulling/smartCase/smartCaseDetail.vue"
import caseStatis from "../components/rulesPulling/caseStatis/caseStatis.vue"
import dustryReport from "../components/statisticAnalysis/dustryReport/dustryReport.vue"
import dataQualityEcharts from "../components/dataQuality/dataQualityEcharts/dataQualityEcharts.vue"
import orderDetail from "../components/dataQuality/orderDetail/orderDetail.vue"
import validDataGrid from "../components/dataQuality/validDataGrid/validDataGrid.vue"
import fullDataGrid from "../components/dataQuality/fullDataGrid/fullDataGrid.vue"
// ------------------------------------------------------------------------------
import setMap from "../components/rulesPulling/setMap/setMap.vue"
import monitorSupervise from "../components/monitorSupervise/monitorSupervise/monitorSupervise.vue"
import creditInformation from "../components/creditInformation/creditInformation/creditInformation.vue"
import businessStanding from "../components/creditInformation/businessStanding/businessStanding.vue"

// 新增
import configTotal from "../components/config/total.vue"
import statisTotal from "../components/statis/total.vue"
import statisIllegalPark from "../components/statis/illegalPark.vue"
import statisExcess from "../components/statis/excess.vue"
import statisCase from "../components/statis/case.vue"


//2021-7-2
import newHome from '../view/home/home'
import parkingManagement from '../view/parkingManagement/parkingArea/parkingArea'
import parkingAdd from '../view/parkingManagement/parkingArea/parkAdd'
import parkingSet from '../view/parkingManagement/parkingArea/parkSet'
import parkingMap from '../view/parkingManagement/parkingMap/facilityPicture'
import putMap from '../view/putManagement/facilityPicture'

Vue.use(VueRouter)
export default new VueRouter({
  linkActiveClass: "active",
  // mode:"history",//去掉# 后端支持可开
  routes: [
    {
      path: '/',
      redirect: '/homePage',
    },
    {
      path: '/login',
      name: "登录",
      component: login,
    },
    {
      path: '/bikeBigData',
      name: "大数据",
      component: bikeBigData,
    },
    //第一栏
    {
      // -----------
      path: '/index',
      component: main,
      children: [
        {
          path: '/homePage',
          name: "数据总览",
          component: newHome,
        },
        {
          path: '/parking',
          component: parkingManagement,
          name: "停放管理",
          children: [{
            path: "add",
            component: parkingAdd,
            name: "新增停放区"
          },{
            path: "set",
            component: parkingSet,
            name: "设置停放区"
          }]
        },
        {
          path: '/putMap',
          component: putMap,
          name: "投放管理",
        },
        {
          path: '/parkingMap',
          component: parkingMap,
          name: "停放一张图",
        },
        {
          path: '/home',
          name: "首页",
          component: home,
        },
        {
          path: '/config/total',
          name: "总量控制",
          component: configTotal,
        },
        //第二栏 行业总览监测
        {
          path: '/informationRecord',
          component: informationRecord,
          name: "信息备案",

          children: [{
            path: "companyDetails",
            component: companyDetails,
            name: "查看企业",

          }]
        },
        {
          path: '/operation',
          component: operation,
          name: "运维管理",

        },

        {
          path: '/safetyEmergency',
          component: safetyEmergency,
          name: "运维管理2",
        },
        {
          path: '/emergencyNotice',
          component: emergencyNotice,
          name: "应急通知",
        },
        {
          path: '/dispatchGrid',
          component: dispatchGrid,
          name: "运营调度",
        },
        {
          path: '/selectEducationGrid',
          component: selectEducationGrid,
          name: "教育信息",

        },
        {
          path: '/bikeInfo',
          component: bikeInfo,
          name: "车辆信息",

        },
        {
          path: '/replaceGrid',
          component: replaceGrid,
          name: "车辆置换",

        },
        {
          path: '/putVehicleGrid',
          component: putVehicleGrid,
          name: "车辆备案管理",

        },
        {
          path: '/setMap',
          component: setMap,
          name: "设置地图",

        },
        {
          path: '/companyExit',
          component: companyExit,
          name: "退出管理",

        },
        {
          path: '/intelligentPatrol',
          component: intelligentPatrol,
          name: "分布及预警管理",

        },
        {
          path: '/parkMap',
          component: parkMap,
          name: "车辆停放分布",

        },
        {
          path: '/alarmInfo',
          component: alarmInfo,
          name: "预警信息明细",

        },
        {
          path: '/smartCase',
          component: smartCase,
          name: "智能立案",

          children:[{
            path: "smartCaseDetail/:id",
            component: smartCaseDetail,
            name: "智能立案征求意见",

          }]
        },
        {
          path: '/reportManage',
          component: reportManage,
          name: "举报案件处理",

          children:[{
            path: "reportDetail/:id",
            component: reportDetail,
            name: "举报案件征求意见",

          }]
        },
        {
          path: '/caseStatis',
          component: caseStatis,
          name: "案件处置",

        },
        {
          path: '/monitorSupervise',
          component: monitorSupervise,
          name: "监督执法管理",

        },
        {
          path: '/creditInformation',
          component: creditInformation,
          name: "骑行用户信用管理",

        },
        {
          path: '/businessStanding',
          component: businessStanding,
          name: "运营企业信用管理",

        },
        {
          path: '/examinationResults',
          component: examinationResults,
          name: "考核结果",
          children: [{
            path: "examinOpinions",
            component: examinOpinions,
            name: "考核结果征求意见",
          }]
        },
        {
          path: '/entering',
          component: entering,
          name: "填报录入",
          children: [{
            path: "examine",
            component: examine,
            name: "进入考核",
          }]
        },
        {
          path: '/taskManagement',
          component: taskManagement,
          name: "任务管理",
        },
        {
          path: '/templateSet',
          component: templateSet,
          name: "模板设置",
          children: [{
            path: "addTemplate",
            component: addTemplate,
            name: "新增模板"
          },
            {
              path: "templateDetail/:id",
              component: templateDetail,
              name: "查看模板"
            }]
        },
        {
          path: '/targetManage',
          component: targetManage,
          name: "指标管理",
        },
        {
          path: '/dataDownload',
          component: dataDownload,
          name: "资料下载",
        },
        {
          path: '/hotspotAnalysis',
          component: hotspotAnalysis,
          name: "热点区域分析",
        },
        {
          path: '/zombieVehicles',
          component: zombieVehicles,
          name: "僵尸车辆分布",
        },
        {
          path: '/activeVehicle',
          component: activeVehicle,
          name: "活跃车辆分布",
        },
        {
          path: '/transitRail',
          component: transitRail,
          name: "公交轨道车辆",
        },
        {
          path: '/dustryReport',
          component: dustryReport,
          name: "行业分析报告",
        },
        {
          path: '/cyclingCharacteristics',
          component: cyclingCharacteristics,
          name: "骑行特征",
        },
        {
          path: '/trackDetail',
          component: trackDetail,
          name: "轨迹查询",
        },
        {
          path: '/vehicleAnalysisOD',
          component: vehicleAnalysisOD,
          name: "车辆OD分析",
        },
        {
          path: '/facilityPicture',
          component: facilityPicture,
          name: "设施一张图",
        },
        {
          path: '/siteAndRail',
          component: siteAndRail,
          name: "站点围栏",
        },
        {
          path: '/smartPile',
          component: smartPile,
          name: "智能车桩",
        },
        {
          path: '/electronicTag',
          component: electronicTag,
          name: "电子标签",
        },
        {
          path: '/parkPicture',
          component: parkPicture,
          name: "停放一张图",
        },
        {
          path: '/parkingArea',
          component: parkingArea,
          name: "停放区管理",
          children: [{
            path: "parkAdd",
            component: parkAdd,
            name: "新增停放区"
          },{
            path: "parkSet",
            component: parkSet,
            name: "设置停放区"
          }]
        },
        {
          path: '/monitoringArea',
          component: monitoringArea,
          name: "监控区管理",
          children: [{
            path: "monitoringAdd",
            component: monitoringAdd,
            name: "新增监控区"
          },{
            path: "monitoringSet",
            component: monitoringSet,
            name: "设置监控区"
          }]
        },
        {
          path: '/illegalArea',
          component: illegalArea,
          name: "违停区管理",
          children: [{
            path: "add",
            component: illegalAreaAdd,
            name: "新增违停区"
          },{
            path: "set",
            component: illegalAreaSet,
            name: "设置违停区"
          }]
        },
        {
          path: '/puttingHistory',
          component: puttingHistory,
          name: "投放历史",
        },
        {
          path: '/labelAllotGrid',
          component: labelAllotGrid,
          name: "电子标签分布",
        },
        {
          path: '/permitPutRecordGrid',
          component: permitPutRecordGrid,
          name: "投放许可记录",
        },
        {
          path: '/regionPutList',
          component: regionPutList,
          name: "投放总量控制",
        },
        {
          path: '/dataQualityEcharts',
          component: dataQualityEcharts,
          name: "数据质量监控",
        },
        {
          path: '/orderDetail',
          component: orderDetail,
          name: "行程核查",
        },
        {
          path: '/validDataGrid',
          component: validDataGrid,
          name: "数据时效性",
        },
        {
          path: '/fullDataGrid',
          component: fullDataGrid,
          name: "数据完整性",
        },
        {
          path: '/systemUser',
          component: systemUser,
          name: "监管平台用户",
        },
        {
          path: '/mobileUser',
          component: mobileUser,
          name: "移动端用户",
        },
        {
          path: '/operationLogs',
          component: operationLogs,
          name: "操作日志",
        },
        {
          path: '/roleManage',
          component: roleManage,
          name: "角色管理",
        },

        {
          path: '/statis/total',
          component: statisTotal,
          name: "车辆总数",
        },
        {
          path: '/statis/excess',
          component: statisExcess,
          name: "超量告警",
        },
        {
          path: '/statis/illegalPark',
          component: statisIllegalPark,
          name: "违停案件数",
        },
        {
          path: '/statis/case',
          component: statisCase,
          name: "执法案件数",
        },
      ]
    },
    {path: "*", redirect: '/home'}
  ]

})
